package com.canal.admin.transfer.req.item;

import lombok.Getter;
import lombok.Setter;

import javax.validation.constraints.Max;
import javax.validation.constraints.Min;
import javax.validation.constraints.NotNull;

/**
 * @author yangbo
 * @date 2020-06-24 14:04
 */
@Getter
@Setter
public class DiscountSetReq {

    @NotNull(message = "未指定渠道号")
    private Integer id;

    @NotNull(message = "未指定折扣比例")
    @Min(value = 0,message = "折扣不能小于0")
    @Max(value = 100,message = "折扣不能大于100")
    private Integer rate;
}
